<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
<title>赌我会瘦</title>
<%@ include file="/WEB-INF/include/meta.jsp"%>
<%@ include file="/WEB-INF/include/css.jsp"%>
</head>
<!-- end header -->

<body>
  <div class="page-group">
    <div class="page page-current profile-page  bg-light-gray">
      <header class="bar bar-nav fb-header">
        <a href="${ctx.host}/welcome" class="icon icon-left pull-left"></a>
        <h1 class="title">个人中心</h1>
      </header>
      <div class="content">
        <div class="user-info clearfix">
          <div class="user-cover">
            <img src="${personal.avatar}" class="img-style"/>
          </div>
          <div class="info">
            <div class="username">
              ${personal.nickname}<span style="font-size: .7rem; margin-left: .75rem; vertical-align: middle;">${personal.gender}</span>
            </div>
            <div class="phone">
              ${personal.mobile}
            </div>
          </div>
        </div>
        <div class="list-block no-margin">
          <a href="javascript:void(0);" class="item-content">
            <div class="item-inner">
              <div class="item-title">账户余额</div>
              <div class="item-after price" style="font-size: 1.4rem;">
                <fmt:formatNumber value="${wallet.balance / 100}" pattern="0.00"></fmt:formatNumber>
                <small style="padding-left: .2rem;font-size: 40%;line-height: 1.2rem;padding-top: .4rem;display: inline-block;">元</small>
              </div>
            </div>
          </a>
          <a href="${ctx.host}/profile/bets" class="item-content item-link">
            <div class="item-inner">
              <div class="item-title">我的活动</div>
            </div>
          </a>
          </div>
        
        <div class="text-center profile-footer">
          <a href="${ctx.host}/profile/withdrawal"><i class="iconfont icon-wallet"></i>奖金提现</a>&nbsp;|&nbsp;
          <a href="${ctx.host}/profile/bill"><i class="iconfont icon-bill"></i>账户明细</a>
        </div>
      </div>
    </div>
  </div>
  <%@ include file="/WEB-INF/include/script.jsp"%>
  <d:resource type="script" root="${ctx.resource}/build" src="js/page/cmomon.js" />
  <script type="text/javascript">
    require(['page/common'], function(page) {
      page.init({
        "jsConfig": JSON.parse('${jsConfig}'),
        "avatar": '${user.avatar}'
      })
    })
  </script>
</body>
</html>